package com.cn.mmd.model;

import java.util.ArrayList;
import java.util.List;

public class StudentIntegralExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public StudentIntegralExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andStudentidIsNull() {
            addCriterion("studentId is null");
            return (Criteria) this;
        }

        public Criteria andStudentidIsNotNull() {
            addCriterion("studentId is not null");
            return (Criteria) this;
        }

        public Criteria andStudentidEqualTo(String value) {
            addCriterion("studentId =", value, "studentid");
            return (Criteria) this;
        }

        public Criteria andStudentidNotEqualTo(String value) {
            addCriterion("studentId <>", value, "studentid");
            return (Criteria) this;
        }

        public Criteria andStudentidGreaterThan(String value) {
            addCriterion("studentId >", value, "studentid");
            return (Criteria) this;
        }

        public Criteria andStudentidGreaterThanOrEqualTo(String value) {
            addCriterion("studentId >=", value, "studentid");
            return (Criteria) this;
        }

        public Criteria andStudentidLessThan(String value) {
            addCriterion("studentId <", value, "studentid");
            return (Criteria) this;
        }

        public Criteria andStudentidLessThanOrEqualTo(String value) {
            addCriterion("studentId <=", value, "studentid");
            return (Criteria) this;
        }

        public Criteria andStudentidLike(String value) {
            addCriterion("studentId like", value, "studentid");
            return (Criteria) this;
        }

        public Criteria andStudentidNotLike(String value) {
            addCriterion("studentId not like", value, "studentid");
            return (Criteria) this;
        }

        public Criteria andStudentidIn(List<String> values) {
            addCriterion("studentId in", values, "studentid");
            return (Criteria) this;
        }

        public Criteria andStudentidNotIn(List<String> values) {
            addCriterion("studentId not in", values, "studentid");
            return (Criteria) this;
        }

        public Criteria andStudentidBetween(String value1, String value2) {
            addCriterion("studentId between", value1, value2, "studentid");
            return (Criteria) this;
        }

        public Criteria andStudentidNotBetween(String value1, String value2) {
            addCriterion("studentId not between", value1, value2, "studentid");
            return (Criteria) this;
        }

        public Criteria andSigningradesumIsNull() {
            addCriterion("signInGradeSum is null");
            return (Criteria) this;
        }

        public Criteria andSigningradesumIsNotNull() {
            addCriterion("signInGradeSum is not null");
            return (Criteria) this;
        }

        public Criteria andSigningradesumEqualTo(Integer value) {
            addCriterion("signInGradeSum =", value, "signingradesum");
            return (Criteria) this;
        }

        public Criteria andSigningradesumNotEqualTo(Integer value) {
            addCriterion("signInGradeSum <>", value, "signingradesum");
            return (Criteria) this;
        }

        public Criteria andSigningradesumGreaterThan(Integer value) {
            addCriterion("signInGradeSum >", value, "signingradesum");
            return (Criteria) this;
        }

        public Criteria andSigningradesumGreaterThanOrEqualTo(Integer value) {
            addCriterion("signInGradeSum >=", value, "signingradesum");
            return (Criteria) this;
        }

        public Criteria andSigningradesumLessThan(Integer value) {
            addCriterion("signInGradeSum <", value, "signingradesum");
            return (Criteria) this;
        }

        public Criteria andSigningradesumLessThanOrEqualTo(Integer value) {
            addCriterion("signInGradeSum <=", value, "signingradesum");
            return (Criteria) this;
        }

        public Criteria andSigningradesumIn(List<Integer> values) {
            addCriterion("signInGradeSum in", values, "signingradesum");
            return (Criteria) this;
        }

        public Criteria andSigningradesumNotIn(List<Integer> values) {
            addCriterion("signInGradeSum not in", values, "signingradesum");
            return (Criteria) this;
        }

        public Criteria andSigningradesumBetween(Integer value1, Integer value2) {
            addCriterion("signInGradeSum between", value1, value2, "signingradesum");
            return (Criteria) this;
        }

        public Criteria andSigningradesumNotBetween(Integer value1, Integer value2) {
            addCriterion("signInGradeSum not between", value1, value2, "signingradesum");
            return (Criteria) this;
        }

        public Criteria andEvaluategradesumIsNull() {
            addCriterion("evaluateGradeSum is null");
            return (Criteria) this;
        }

        public Criteria andEvaluategradesumIsNotNull() {
            addCriterion("evaluateGradeSum is not null");
            return (Criteria) this;
        }

        public Criteria andEvaluategradesumEqualTo(Integer value) {
            addCriterion("evaluateGradeSum =", value, "evaluategradesum");
            return (Criteria) this;
        }

        public Criteria andEvaluategradesumNotEqualTo(Integer value) {
            addCriterion("evaluateGradeSum <>", value, "evaluategradesum");
            return (Criteria) this;
        }

        public Criteria andEvaluategradesumGreaterThan(Integer value) {
            addCriterion("evaluateGradeSum >", value, "evaluategradesum");
            return (Criteria) this;
        }

        public Criteria andEvaluategradesumGreaterThanOrEqualTo(Integer value) {
            addCriterion("evaluateGradeSum >=", value, "evaluategradesum");
            return (Criteria) this;
        }

        public Criteria andEvaluategradesumLessThan(Integer value) {
            addCriterion("evaluateGradeSum <", value, "evaluategradesum");
            return (Criteria) this;
        }

        public Criteria andEvaluategradesumLessThanOrEqualTo(Integer value) {
            addCriterion("evaluateGradeSum <=", value, "evaluategradesum");
            return (Criteria) this;
        }

        public Criteria andEvaluategradesumIn(List<Integer> values) {
            addCriterion("evaluateGradeSum in", values, "evaluategradesum");
            return (Criteria) this;
        }

        public Criteria andEvaluategradesumNotIn(List<Integer> values) {
            addCriterion("evaluateGradeSum not in", values, "evaluategradesum");
            return (Criteria) this;
        }

        public Criteria andEvaluategradesumBetween(Integer value1, Integer value2) {
            addCriterion("evaluateGradeSum between", value1, value2, "evaluategradesum");
            return (Criteria) this;
        }

        public Criteria andEvaluategradesumNotBetween(Integer value1, Integer value2) {
            addCriterion("evaluateGradeSum not between", value1, value2, "evaluategradesum");
            return (Criteria) this;
        }

        public Criteria andQuestionsgradesumIsNull() {
            addCriterion("questionsGradeSum is null");
            return (Criteria) this;
        }

        public Criteria andQuestionsgradesumIsNotNull() {
            addCriterion("questionsGradeSum is not null");
            return (Criteria) this;
        }

        public Criteria andQuestionsgradesumEqualTo(Integer value) {
            addCriterion("questionsGradeSum =", value, "questionsgradesum");
            return (Criteria) this;
        }

        public Criteria andQuestionsgradesumNotEqualTo(Integer value) {
            addCriterion("questionsGradeSum <>", value, "questionsgradesum");
            return (Criteria) this;
        }

        public Criteria andQuestionsgradesumGreaterThan(Integer value) {
            addCriterion("questionsGradeSum >", value, "questionsgradesum");
            return (Criteria) this;
        }

        public Criteria andQuestionsgradesumGreaterThanOrEqualTo(Integer value) {
            addCriterion("questionsGradeSum >=", value, "questionsgradesum");
            return (Criteria) this;
        }

        public Criteria andQuestionsgradesumLessThan(Integer value) {
            addCriterion("questionsGradeSum <", value, "questionsgradesum");
            return (Criteria) this;
        }

        public Criteria andQuestionsgradesumLessThanOrEqualTo(Integer value) {
            addCriterion("questionsGradeSum <=", value, "questionsgradesum");
            return (Criteria) this;
        }

        public Criteria andQuestionsgradesumIn(List<Integer> values) {
            addCriterion("questionsGradeSum in", values, "questionsgradesum");
            return (Criteria) this;
        }

        public Criteria andQuestionsgradesumNotIn(List<Integer> values) {
            addCriterion("questionsGradeSum not in", values, "questionsgradesum");
            return (Criteria) this;
        }

        public Criteria andQuestionsgradesumBetween(Integer value1, Integer value2) {
            addCriterion("questionsGradeSum between", value1, value2, "questionsgradesum");
            return (Criteria) this;
        }

        public Criteria andQuestionsgradesumNotBetween(Integer value1, Integer value2) {
            addCriterion("questionsGradeSum not between", value1, value2, "questionsgradesum");
            return (Criteria) this;
        }

        public Criteria andAnswergradesumIsNull() {
            addCriterion("answerGradeSum is null");
            return (Criteria) this;
        }

        public Criteria andAnswergradesumIsNotNull() {
            addCriterion("answerGradeSum is not null");
            return (Criteria) this;
        }

        public Criteria andAnswergradesumEqualTo(Integer value) {
            addCriterion("answerGradeSum =", value, "answergradesum");
            return (Criteria) this;
        }

        public Criteria andAnswergradesumNotEqualTo(Integer value) {
            addCriterion("answerGradeSum <>", value, "answergradesum");
            return (Criteria) this;
        }

        public Criteria andAnswergradesumGreaterThan(Integer value) {
            addCriterion("answerGradeSum >", value, "answergradesum");
            return (Criteria) this;
        }

        public Criteria andAnswergradesumGreaterThanOrEqualTo(Integer value) {
            addCriterion("answerGradeSum >=", value, "answergradesum");
            return (Criteria) this;
        }

        public Criteria andAnswergradesumLessThan(Integer value) {
            addCriterion("answerGradeSum <", value, "answergradesum");
            return (Criteria) this;
        }

        public Criteria andAnswergradesumLessThanOrEqualTo(Integer value) {
            addCriterion("answerGradeSum <=", value, "answergradesum");
            return (Criteria) this;
        }

        public Criteria andAnswergradesumIn(List<Integer> values) {
            addCriterion("answerGradeSum in", values, "answergradesum");
            return (Criteria) this;
        }

        public Criteria andAnswergradesumNotIn(List<Integer> values) {
            addCriterion("answerGradeSum not in", values, "answergradesum");
            return (Criteria) this;
        }

        public Criteria andAnswergradesumBetween(Integer value1, Integer value2) {
            addCriterion("answerGradeSum between", value1, value2, "answergradesum");
            return (Criteria) this;
        }

        public Criteria andAnswergradesumNotBetween(Integer value1, Integer value2) {
            addCriterion("answerGradeSum not between", value1, value2, "answergradesum");
            return (Criteria) this;
        }

        public Criteria andActivitygradesumIsNull() {
            addCriterion("activityGradeSum is null");
            return (Criteria) this;
        }

        public Criteria andActivitygradesumIsNotNull() {
            addCriterion("activityGradeSum is not null");
            return (Criteria) this;
        }

        public Criteria andActivitygradesumEqualTo(Integer value) {
            addCriterion("activityGradeSum =", value, "activitygradesum");
            return (Criteria) this;
        }

        public Criteria andActivitygradesumNotEqualTo(Integer value) {
            addCriterion("activityGradeSum <>", value, "activitygradesum");
            return (Criteria) this;
        }

        public Criteria andActivitygradesumGreaterThan(Integer value) {
            addCriterion("activityGradeSum >", value, "activitygradesum");
            return (Criteria) this;
        }

        public Criteria andActivitygradesumGreaterThanOrEqualTo(Integer value) {
            addCriterion("activityGradeSum >=", value, "activitygradesum");
            return (Criteria) this;
        }

        public Criteria andActivitygradesumLessThan(Integer value) {
            addCriterion("activityGradeSum <", value, "activitygradesum");
            return (Criteria) this;
        }

        public Criteria andActivitygradesumLessThanOrEqualTo(Integer value) {
            addCriterion("activityGradeSum <=", value, "activitygradesum");
            return (Criteria) this;
        }

        public Criteria andActivitygradesumIn(List<Integer> values) {
            addCriterion("activityGradeSum in", values, "activitygradesum");
            return (Criteria) this;
        }

        public Criteria andActivitygradesumNotIn(List<Integer> values) {
            addCriterion("activityGradeSum not in", values, "activitygradesum");
            return (Criteria) this;
        }

        public Criteria andActivitygradesumBetween(Integer value1, Integer value2) {
            addCriterion("activityGradeSum between", value1, value2, "activitygradesum");
            return (Criteria) this;
        }

        public Criteria andActivitygradesumNotBetween(Integer value1, Integer value2) {
            addCriterion("activityGradeSum not between", value1, value2, "activitygradesum");
            return (Criteria) this;
        }

        public Criteria andGradesumIsNull() {
            addCriterion("gradeSum is null");
            return (Criteria) this;
        }

        public Criteria andGradesumIsNotNull() {
            addCriterion("gradeSum is not null");
            return (Criteria) this;
        }

        public Criteria andGradesumEqualTo(Integer value) {
            addCriterion("gradeSum =", value, "gradesum");
            return (Criteria) this;
        }

        public Criteria andGradesumNotEqualTo(Integer value) {
            addCriterion("gradeSum <>", value, "gradesum");
            return (Criteria) this;
        }

        public Criteria andGradesumGreaterThan(Integer value) {
            addCriterion("gradeSum >", value, "gradesum");
            return (Criteria) this;
        }

        public Criteria andGradesumGreaterThanOrEqualTo(Integer value) {
            addCriterion("gradeSum >=", value, "gradesum");
            return (Criteria) this;
        }

        public Criteria andGradesumLessThan(Integer value) {
            addCriterion("gradeSum <", value, "gradesum");
            return (Criteria) this;
        }

        public Criteria andGradesumLessThanOrEqualTo(Integer value) {
            addCriterion("gradeSum <=", value, "gradesum");
            return (Criteria) this;
        }

        public Criteria andGradesumIn(List<Integer> values) {
            addCriterion("gradeSum in", values, "gradesum");
            return (Criteria) this;
        }

        public Criteria andGradesumNotIn(List<Integer> values) {
            addCriterion("gradeSum not in", values, "gradesum");
            return (Criteria) this;
        }

        public Criteria andGradesumBetween(Integer value1, Integer value2) {
            addCriterion("gradeSum between", value1, value2, "gradesum");
            return (Criteria) this;
        }

        public Criteria andGradesumNotBetween(Integer value1, Integer value2) {
            addCriterion("gradeSum not between", value1, value2, "gradesum");
            return (Criteria) this;
        }

        public Criteria andUpgradeIsNull() {
            addCriterion("upgrade is null");
            return (Criteria) this;
        }

        public Criteria andUpgradeIsNotNull() {
            addCriterion("upgrade is not null");
            return (Criteria) this;
        }

        public Criteria andUpgradeEqualTo(Integer value) {
            addCriterion("upgrade =", value, "upgrade");
            return (Criteria) this;
        }

        public Criteria andUpgradeNotEqualTo(Integer value) {
            addCriterion("upgrade <>", value, "upgrade");
            return (Criteria) this;
        }

        public Criteria andUpgradeGreaterThan(Integer value) {
            addCriterion("upgrade >", value, "upgrade");
            return (Criteria) this;
        }

        public Criteria andUpgradeGreaterThanOrEqualTo(Integer value) {
            addCriterion("upgrade >=", value, "upgrade");
            return (Criteria) this;
        }

        public Criteria andUpgradeLessThan(Integer value) {
            addCriterion("upgrade <", value, "upgrade");
            return (Criteria) this;
        }

        public Criteria andUpgradeLessThanOrEqualTo(Integer value) {
            addCriterion("upgrade <=", value, "upgrade");
            return (Criteria) this;
        }

        public Criteria andUpgradeIn(List<Integer> values) {
            addCriterion("upgrade in", values, "upgrade");
            return (Criteria) this;
        }

        public Criteria andUpgradeNotIn(List<Integer> values) {
            addCriterion("upgrade not in", values, "upgrade");
            return (Criteria) this;
        }

        public Criteria andUpgradeBetween(Integer value1, Integer value2) {
            addCriterion("upgrade between", value1, value2, "upgrade");
            return (Criteria) this;
        }

        public Criteria andUpgradeNotBetween(Integer value1, Integer value2) {
            addCriterion("upgrade not between", value1, value2, "upgrade");
            return (Criteria) this;
        }

        public Criteria andScoreIsNull() {
            addCriterion("score is null");
            return (Criteria) this;
        }

        public Criteria andScoreIsNotNull() {
            addCriterion("score is not null");
            return (Criteria) this;
        }

        public Criteria andScoreEqualTo(Integer value) {
            addCriterion("score =", value, "score");
            return (Criteria) this;
        }

        public Criteria andScoreNotEqualTo(Integer value) {
            addCriterion("score <>", value, "score");
            return (Criteria) this;
        }

        public Criteria andScoreGreaterThan(Integer value) {
            addCriterion("score >", value, "score");
            return (Criteria) this;
        }

        public Criteria andScoreGreaterThanOrEqualTo(Integer value) {
            addCriterion("score >=", value, "score");
            return (Criteria) this;
        }

        public Criteria andScoreLessThan(Integer value) {
            addCriterion("score <", value, "score");
            return (Criteria) this;
        }

        public Criteria andScoreLessThanOrEqualTo(Integer value) {
            addCriterion("score <=", value, "score");
            return (Criteria) this;
        }

        public Criteria andScoreIn(List<Integer> values) {
            addCriterion("score in", values, "score");
            return (Criteria) this;
        }

        public Criteria andScoreNotIn(List<Integer> values) {
            addCriterion("score not in", values, "score");
            return (Criteria) this;
        }

        public Criteria andScoreBetween(Integer value1, Integer value2) {
            addCriterion("score between", value1, value2, "score");
            return (Criteria) this;
        }

        public Criteria andScoreNotBetween(Integer value1, Integer value2) {
            addCriterion("score not between", value1, value2, "score");
            return (Criteria) this;
        }

        public Criteria andGradeIsNull() {
            addCriterion("grade is null");
            return (Criteria) this;
        }

        public Criteria andGradeIsNotNull() {
            addCriterion("grade is not null");
            return (Criteria) this;
        }

        public Criteria andGradeEqualTo(Integer value) {
            addCriterion("grade =", value, "grade");
            return (Criteria) this;
        }

        public Criteria andGradeNotEqualTo(Integer value) {
            addCriterion("grade <>", value, "grade");
            return (Criteria) this;
        }

        public Criteria andGradeGreaterThan(Integer value) {
            addCriterion("grade >", value, "grade");
            return (Criteria) this;
        }

        public Criteria andGradeGreaterThanOrEqualTo(Integer value) {
            addCriterion("grade >=", value, "grade");
            return (Criteria) this;
        }

        public Criteria andGradeLessThan(Integer value) {
            addCriterion("grade <", value, "grade");
            return (Criteria) this;
        }

        public Criteria andGradeLessThanOrEqualTo(Integer value) {
            addCriterion("grade <=", value, "grade");
            return (Criteria) this;
        }

        public Criteria andGradeIn(List<Integer> values) {
            addCriterion("grade in", values, "grade");
            return (Criteria) this;
        }

        public Criteria andGradeNotIn(List<Integer> values) {
            addCriterion("grade not in", values, "grade");
            return (Criteria) this;
        }

        public Criteria andGradeBetween(Integer value1, Integer value2) {
            addCriterion("grade between", value1, value2, "grade");
            return (Criteria) this;
        }

        public Criteria andGradeNotBetween(Integer value1, Integer value2) {
            addCriterion("grade not between", value1, value2, "grade");
            return (Criteria) this;
        }

        public Criteria andLogingradesumIsNull() {
            addCriterion("loginGradeSum is null");
            return (Criteria) this;
        }

        public Criteria andLogingradesumIsNotNull() {
            addCriterion("loginGradeSum is not null");
            return (Criteria) this;
        }

        public Criteria andLogingradesumEqualTo(Integer value) {
            addCriterion("loginGradeSum =", value, "logingradesum");
            return (Criteria) this;
        }

        public Criteria andLogingradesumNotEqualTo(Integer value) {
            addCriterion("loginGradeSum <>", value, "logingradesum");
            return (Criteria) this;
        }

        public Criteria andLogingradesumGreaterThan(Integer value) {
            addCriterion("loginGradeSum >", value, "logingradesum");
            return (Criteria) this;
        }

        public Criteria andLogingradesumGreaterThanOrEqualTo(Integer value) {
            addCriterion("loginGradeSum >=", value, "logingradesum");
            return (Criteria) this;
        }

        public Criteria andLogingradesumLessThan(Integer value) {
            addCriterion("loginGradeSum <", value, "logingradesum");
            return (Criteria) this;
        }

        public Criteria andLogingradesumLessThanOrEqualTo(Integer value) {
            addCriterion("loginGradeSum <=", value, "logingradesum");
            return (Criteria) this;
        }

        public Criteria andLogingradesumIn(List<Integer> values) {
            addCriterion("loginGradeSum in", values, "logingradesum");
            return (Criteria) this;
        }

        public Criteria andLogingradesumNotIn(List<Integer> values) {
            addCriterion("loginGradeSum not in", values, "logingradesum");
            return (Criteria) this;
        }

        public Criteria andLogingradesumBetween(Integer value1, Integer value2) {
            addCriterion("loginGradeSum between", value1, value2, "logingradesum");
            return (Criteria) this;
        }

        public Criteria andLogingradesumNotBetween(Integer value1, Integer value2) {
            addCriterion("loginGradeSum not between", value1, value2, "logingradesum");
            return (Criteria) this;
        }

        public Criteria andLotterynumberIsNull() {
            addCriterion("lotteryNumber is null");
            return (Criteria) this;
        }

        public Criteria andLotterynumberIsNotNull() {
            addCriterion("lotteryNumber is not null");
            return (Criteria) this;
        }

        public Criteria andLotterynumberEqualTo(Integer value) {
            addCriterion("lotteryNumber =", value, "lotterynumber");
            return (Criteria) this;
        }

        public Criteria andLotterynumberNotEqualTo(Integer value) {
            addCriterion("lotteryNumber <>", value, "lotterynumber");
            return (Criteria) this;
        }

        public Criteria andLotterynumberGreaterThan(Integer value) {
            addCriterion("lotteryNumber >", value, "lotterynumber");
            return (Criteria) this;
        }

        public Criteria andLotterynumberGreaterThanOrEqualTo(Integer value) {
            addCriterion("lotteryNumber >=", value, "lotterynumber");
            return (Criteria) this;
        }

        public Criteria andLotterynumberLessThan(Integer value) {
            addCriterion("lotteryNumber <", value, "lotterynumber");
            return (Criteria) this;
        }

        public Criteria andLotterynumberLessThanOrEqualTo(Integer value) {
            addCriterion("lotteryNumber <=", value, "lotterynumber");
            return (Criteria) this;
        }

        public Criteria andLotterynumberIn(List<Integer> values) {
            addCriterion("lotteryNumber in", values, "lotterynumber");
            return (Criteria) this;
        }

        public Criteria andLotterynumberNotIn(List<Integer> values) {
            addCriterion("lotteryNumber not in", values, "lotterynumber");
            return (Criteria) this;
        }

        public Criteria andLotterynumberBetween(Integer value1, Integer value2) {
            addCriterion("lotteryNumber between", value1, value2, "lotterynumber");
            return (Criteria) this;
        }

        public Criteria andLotterynumberNotBetween(Integer value1, Integer value2) {
            addCriterion("lotteryNumber not between", value1, value2, "lotterynumber");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}